
{include template('header','common')}

<link href="{THEME_STYLE_PATH}style/css/index.css" type="text/css" rel="stylesheet" />
<style type="text/css">
#jxy_div_indexPPT{height: 300px;width:980px;overflow: hidden;position: relative;}
.jxy_cls_indexPPT{position: absolute;}
.jxy_cls_indexPPT li{float:left;width:980px;}

.tip{left: 0;top: 0;width: 180px;position: absolute;color: #b3b3b3;outline: none;border: none;background: none;font-size: 12px;font-family: "微软雅黑";}
</style>
	<!--主体-->
	<div id="Mainbox">
	{include template('sidebar_login','common')}
		<!-- 登录 -->
		{include template('login','common')}
		<!--通栏广告-->
		<div id="jxy_middle_ad" style="position: relative; width: 960px; background: none repeat scroll 0% 0% rgb(255, 255, 255); padding: 9px; border: 1px solid rgb(222, 222, 222); margin: 0px auto 10px; display: none;"><a href="#"><img src="{THEME_STYLE_PATH}style/images/63.jpg" title="" width="960"></a>
		</div>
		<script type="text/javascript">
			$("#jxy_middle_ad").slideDown(500);
			setTimeout('$("#jxy_middle_ad").slideUp(2000);', 10000);
		</script>
		<!--通栏广告-->
				<!--热门体验-->
		<div class="Main_Left" style="height:495px;">
			<h1>热门体验
				<div class="swygbox" id="jxy_div_foreshow">
					<label class="swtxt">试玩预告</label>
					<div id="jxy_ul_foreshow" style="height: 30px; overflow: hidden; display: block;">
					{php $_time1 = strtotime(date('Y-m-d 00:00:00',strtotime('today'))); $_time2 = strtotime(date('Y-m-d 23:59:59',strtotime('today'))); }
						{php $_wherex = "start_time > ".$_time1." AND ".$_time2." > start_time";}
						{pc:document action="lists" num="10" catid="2" where='$_wherex'}
						{loop $data $r}	
						<ul class="swyg">
							<li class="a1"></li>
							<li class="a2"><a href="{$p[url]}" target="_blank" title="{$r[title]}">{cutstr($r[title],9)}</a>({date('H:i',$r[start_time])})</li>
							<li class="a3"><span class="ofe">{ceil($r[reward]/10000)}万</span><img src="{THEME_STYLE_PATH}style/images/ub.gif"></li>
							<li class="a4">今日</li>
						</ul>						
						{/loop}
						{/pc}
					</div>
					<div id="jxy_ul_foreshowall" style="display: none;">					
						{pc:document action="lists" num="8" catid="2" where='$_wherex'}
						{loop $data $p}	
						<ul class="swyg">
							<li class="a1"></li>
							<li class="a2"><a href="{$p[url]}" target="_blank" title="{$p[title]}">{cutstr($p[title],9)}</a>({date('H:i',$p[start_time])})</li>
							<li class="a3"><span class="ofe">{ceil($p[reward]/10000)}万</span><img src="{THEME_STYLE_PATH}style/images/ub.gif"></li>
							<li class="a4">今日</li>
						</ul>						
						{/loop}
						{/pc}
					</div>
				</div>
			</h1>
			<ul class="idx_ty"><!--显示6条，注意第3条，第6条LI的样式-->
			{php $_whereq = time()." > start_time AND end_time > ".time()}
			{pc:document action="lists" num="6" catid="2" where='$_whereq'}
			{php $count = 0}
			{loop $data $l $t}
			{$count++}
				<li {if $count == 6} class="last" {/if}>
					<p class="a3">
						<label class="tyon" style="display:none;">
							<a href="{$t[url]}" target="_blank">
							<img src="{THEME_STYLE_PATH}style/images/ty_on_show.png"></a>
						</label>
						<img src="{$t[thumb]}" alt="{$t[title]}" height="118" width="202">
					</p>
					<p class="a1">
						<a href="{$t[url]}" title="{$t[title]}" target="_blank">{$t[title]}</a></p>
						<p class="a2">类型：网页试玩&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;参与人数：<span class="g46">{$t[recruit_exist]}</span><br>
						每人奖励:<span class="ofe">{if floor($t[reward]/100000000)}{floor($t[reward]/100000000)}亿{elseif floor($t[reward]/10000000)}{floor($t[reward]/10000000)}千万{elseif floor($t[reward]/1000000)}{floor($t[reward]/1000000)}百万{elseif floor($t[reward]/100000)}{floor($t[reward]/100000)}十万{elseif floor($t[reward]/10000)}{floor($t[reward]/10000)}万{elseif floor($t[reward]/1000)}{number_format($t[reward]/10000,1)}万{/if}</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub21" style="margin-bottom:0px;vertical-align: -1px;">&nbsp;(约<span class="ofe">{if floor($t[reward]/100000000)}{floor($t[reward]/100000000)}万{elseif floor($t[reward]/10000000)}{floor($t[reward]/10000000)}千{elseif floor($t[reward]/1000000)}{floor($t[reward]/1000000)}百{elseif floor($t[reward]/100000)}{floor($t[reward]/100000)}十{elseif floor($t[reward]/10000)}{floor($t[reward]/10000)}{elseif floor($t[reward]/1000)}{number_format($t[reward]/10000,1)}{/if}
						</span>元人民币)<br>充值返利:<span class="da3">{$t[rebate]}%</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#?adID=2015" target="_blank" class="b40link" style="color:#408bca;font-weight:normal;display:none;">立即体验</a>
					</p>
				</li>
			{/loop}
			{/pc}						
			</ul>
		</div>
		<!--热门体验-->
		<div class="Main_Right" style="padding-bottom:0px; height:510px;">
			<p class="title">最新资讯<label style="float:right;font-size:12px;font-weight: normal;"><a href="/news/" class="da3" target="_blank">更多</a></label></p>
			<ul class="idx_news">
			{pc:document action="lists" catid="18" num="11"}
			{loop $data $q}
				<li><a href="{$q[url]}" {title_style($q[style])}>{cutstr($q[title],30)}</a></li>
			{/loop}
			{/pc}
			</ul>
			<p class="title">大家都在玩</p>
			<ul class="idx_dzw" id="jxy_ul_gaming" style="height:130px;overflow:hidden;">
			<!-- 40条记录查游戏最多的玩家并且按领取U币时间的倒序排列 -->
				<li>
					<p><img src="{THEME_STYLE_PATH}style/images/14.jpg" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">聚会123</span></p>
					<p class="a2">玩：<a href="#?adID=2012" target="_blank" class="b40link">西游斗神</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/14.jpg" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">yeseliao</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/10.jpg" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">PK001PK</span></p>
					<p class="a2">玩：<a href="#?adID=1944" target="_blank" class="b40link">闽乐游6期</a><br>领取了<span class="ofe">3,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">Ashriel</span></p>
					<p class="a2">玩：<a href="#?adID=2022" target="_blank" class="b40link">风云无双4服</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/07.jpg" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">曼陀罗的等待</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/09.jpg" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">kingsjun</span></p>
					<p class="a2">玩：<a href="#?adID=2012" target="_blank" class="b40link">西游斗神</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/16.jpg" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">豹纹旗袍范</span></p>
					<p class="a2">玩：<a href="#?adID=2067" target="_blank" class="b40link">醉武侠4服</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
				</li>
							<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">what911</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p></li>

					<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">what911</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p></li>

					<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">what911</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p></li>

					<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">what911</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p></li>

<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">what911</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p></li>

<li>
					<p><img src="{THEME_STYLE_PATH}style/images/01.gif" class="dzw_head" width="50"></p>
					<p class="a1"><span class="g46">what911</span></p>
					<p class="a2">玩：<a href="#?adID=2066" target="_blank" class="b40link">风云无双22服</a><br>领取了<span class="ofe">15,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p></li>


						
			</ul>
		</div>
		<!--最新资讯-->
				<div class="clear"></div>
		<!--广告位-->
		<div style="width: 980px;margin: 0 auto;margin-bottom: 10px;text-align: center;">
		980广告位
		</div>
<!--广告位-->
		<!--热门奖励--> 
		<div class="Main_Left" style="height:208px;">
			<h1>热门奖励</h1>
			<ul class="rmjl" style="margin-top:20px;">
			{php $_whereh = "`credit_type` = 'coin' AND `shop_type` = '2'"}
			{pc:document action="lists" catid="6" where='$_whereh' num="5" order="id DESC" page="$page"}
			{loop $data $x}
				<li><a href="{$x[url]}" title="{$x[title]}"><img src="{$x[thumb]}" target="_blank" height="108" width="98"><br><strong>{$x[title]}</strong></a></li>
			{/loop}
			{/pc}			
							
			</ul>
		</div>
		<!--热门奖励-->
		<!--大家都在兑-->
		<div class="Main_Right" style="height:208px;">
			<p class="title">大家都在兑</p>
			<ul class="idx_dzw" id="jxy_ul_reward" style="height:183px;overflow:hidden;"><!--5秒换一组，显示-->
			{pc:member action="convertlist" num="20" order="time DESC"}
			<!-- 20条-->
			{loop $data $b}
				<li>
					<p><img src="{THEME_STYLE_PATH}style/avatar/default/<?php echo $b[photo]; ?>.jpg" width="50"  class="dzw_head"/></p>
					<p class="a1"><span class="g46">{$b['consignee']}</span></p>
					<p class="a2">兑换了:<span class="ofe">{$b['name']}</span><br /><span class="da3"> {php if(ceil((time()-$b['time'])/3600) > 0) echo ceil((time()-$b['time'])/3600).'小时之前'; else $v['time'].'秒之前';	}</span></p>
				</li>
			{/loop}		
			{/pc}				
		</ul>
		</div>
		<!--大家都在兑-->
		<div class="clear"></div>
		<!--合作商家-->
		<div class="hzsj">
			<p class="title">合作商家</p>
			<ul>
			{pc:link action="shoplist"}
				{loop $data $s}
					<li><img src="{$s[image]}" alt="{$s[webname]}" title="{$s[title]}" border="0" height="50" width="106"></li>
				{/loop}
			{/pc}
			</ul>
		</div>
		<!--合作商家-->
		<!--友情链接-->
		<div class="yqlj">
			<p class="title">友情链接</p>
			<ul>
			{pc:link action="lists" num="16"}
			{loop $data $s}
				<li><a href="{$s[url]}" target="_blank">{$s[webname]}</a></li>
			{/loop}
			{/pc}
			</ul>
		</div>
		<!--友情链接-->
		<style>
			.login-oauth {
				line-height: 24px;
			}
			a.login-oauth-sina{
				margin-right: 10px;
				float: left;
				display: inline;
				padding-left: 25px;
				height: 24px;
				line-height: 24px;
				color: #797979;
				background: url({THEME_STYLE_PATH}style/images/icon.png) no-repeat -185px -312px;
			}
			a.login-oauth-sina:hover {
				color: #468419;
			}
			a.login-oauth-sina:hover {
				background-position: -185px -336px;
			}
		</style>
	</div>
	<div id="jxy_ad_taobao" style="float: right; bottom: -17px; right: 0px; position: fixed; height: 0px;">
	<script type="text/javascript">
	     document.write('<a style="display:none!important" id="tanx-a-mm_30081671_4178219_24814347"></a>');
	     tanx_s = document.createElement("script");
	     tanx_s.type = "text/javascript";
	     tanx_s.charset = "utf-8";
	     tanx_s.id = "tanx-s-mm_30081671_4178219_24814347";
	     tanx_s.async = true;
	     tanx_s.src = "{__APP__}";
	     tanx_h = document.getElementsByTagName("head")[0];
	     if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild);
	     setTimeout('$("#jxy_ad_taobao").animate({"height":"0","bottom":"-17px"},2000);',10000);
	</script>
	<ins style="display:inline-block;padding:0;margin:0;width:300px;height:250px;*zoom:1;*display:inline" id="tanxssp-outer-conmm_30081671_4178219_24814347">
		<div id="tanxssp_con_mm_30081671_4178219_24814347" style="display:inline-block;position:relative;width:300px;height:250px;*display:inline;*zoom:1">
		<iframe src="{THEME_STYLE_PATH}style/html/T1M.htm" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="true" frameborder="0" height="250px" width="300px"></iframe>
			<a id="iconmm_30081671_4178219_24814347" title="我也要申请橱窗推广" target="_blank" href="#" style="width: 26px; height: 17px; right: 0px; bottom: 0px; display: block; position: absolute; cursor: pointer; z-index: 250;">   
			<span id="icon_smallmm_30081671_4178219_24814347" style="float: none; width: 26px; display: block; height: 17px; background-repeat: no-repeat; background-image: url(&quot;http://gtms02.alicdn.com/tps/i2/T1oY3VXmNbXXXb8qDc-26-18.png&quot;);"></span>   
			<span id="icon_bigmm_30081671_4178219_24814347" style="float: none; width: 110px; height: 17px; display: none; background-repeat: no-repeat; background-image: url(&quot;http://img03.taobaocdn.com/tps/i3/T1dt7VXiRaXXbd25o5-110-18.png&quot;);"></span>
			</a>
		</div>
	</ins>
	<a style="display:none!important" id="tanx-a-mm_30081671_4178219_24814347"></a>
	</div>
	<!--主体-->
	<script src="{THEME_STYLE_PATH}style/js/VerticalScroll.js"></script>
	<script type="text/javascript">
	var isLimit = true;
	$(document).ready(function(){
		juxiangyou.component.scroll.indexPPTScroll();
			});

		//试玩预告滚动
		var scrollup_game = new VerticalScroll("jxy_ul_foreshow");
		scrollup_game.LineHeight = 28;
		scrollup_game.Amount = 1;
		scrollup_game.Delay = 0;
		scrollup_game.Timeout = 2000;
		scrollup_game.AutoScroll();
		$('#jxy_div_foreshow').mouseover(function(){
			$('#jxy_ul_foreshowall').show();
			$('#jxy_ul_foreshow').hide();
		});
		$('#jxy_div_foreshow').mouseout(function(){
			$('#jxy_ul_foreshowall').hide();
			$('#jxy_ul_foreshow').show();
		});

		
		//大家都在玩滚动
		var scrollup_game = new VerticalScroll("jxy_ul_gaming");
		scrollup_game.LineHeight = 132;
		scrollup_game.Amount = 2;
		scrollup_game.Delay = 0;
		scrollup_game.Timeout = 3000;
		scrollup_game.AutoScroll();
		
		//大家都在兑滚动
		var scrollup_reward = new VerticalScroll("jxy_ul_reward");
		scrollup_reward.LineHeight = 0;
		scrollup_reward.Amount = 1;
		scrollup_reward.Delay = 50;
		scrollup_reward.Timeout = 0;
		scrollup_reward.AutoScroll();
	    
	    $('.idx_ty p.a3').mouseover(function(){$(this).find('.tyon').show();}).mouseout(function(){$(this).find('.tyon').hide();});
	    //快速登陆
	    $('.tip').click(function(){
	    	//$('.tip').animate({opacity: '0'}, 1000 , function(){$(this).hide();});
	    	$('.tip').hide();$('#loginUser').focus();
	    });
	    $('#loginUser').focus(function(){
	    	$('.loginwrg').hide();
	    	this.onkeydown = disableRefresh;
	    }).blur(function(){
	    	var userAccount = $.trim($(this).val());
	    	var regMail = /^\w+([-\.]\w+)*@\w+([\.-]\w+)*\.\w{2,4}$/;
	    	var regInt = /^-?[1-9]+[0-9]*$/;
	    	var regName = /^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9]){2,20}$/;
	    	if(regMail.test(userAccount)==false && !regInt.exec(userAccount) && !regName.exec(userAccount)){
	    		$(this).val('');$('.tip').show();
	    	}	
	    });
	    $('#loginUser').keydown(function(){
	    	//$('.tip').animate({opacity: '0'}, 500 , function(){$(this).hide();});
	    	$('.tip').hide();
	    });
	    $('#loginPwd').focus(function(){
	    	$('.loginwrg').hide();
	    	this.onkeydown = disableRefresh;
	    });
	    $('.lbtn').unbind('click').live('click',function(){quickLogin();});
	    function disableRefresh(evt){
			evt = (evt) ? evt : window.event
			if (evt.keyCode) {
			   if(evt.keyCode == 13){
			     quickLogin();
			   }
			}
		}
	    function quickLogin(){
		if(isLimit==false){return;}
	    	var userAccount = $.trim($('#loginUser').val());
	    	var userPwd = $.trim($('#loginPwd').val());
	    	
	    	if(!userAccount || !userPwd){
	    		$('.loginwrg').html('用户名和密码不能为空！').show();return;
	    	}
	    	isLimit = false;
			var url = "/login.php?act=loginDo";
			
	    	$.ajax({
				type: "POST",
				url: url,
				dataType: "json",
				data : "tbUserAccount="+userAccount+"&tbUserPwd="+userPwd+"&isChkCode=0",
				success: function(strJson){
					if(strJson.result=='200'){
						if(strJson.reLink){
							window.location.href = strJson.reLink;
						}else{
							window.location.href = '/';
						}
						
					}else{
						$('.loginwrg').html(strJson.msg).show();
					}
					isLimit = true;
				}
			})
	    }

			var _s = 1;
	function checkIn(_f1) {
		if(_s){_s = 0;
			var _f = _f1.substring(1,3)+_f1.substring(6,9)+_f1.substring(12,21)+_f1.substring(1,5);
			    $.post('checkin.php?act=checkin&tcode=jxy&t=1', {
				postkey: 1,
					_fk:_f
			    }, function (data) {
				eval('var response = ' + data); 
				if (response.errno == 0) { 
					$('#rightsign').html('+'+response.treasure+'挖宝藏');
					window.setTimeout(function () {
						$('#rightsign').html('+'+response.insertG+'{type_change()}币');
						$('#rightsign').css('top','50px');
						$('#rightsign').css('opacity','100');
						$('#rightsign').stop().animate({top:"10",opacity:0}, 2000).css("display","block");
					},1000); 
					$('#rightsign').stop().animate({top:"20",opacity:30}, 1000).css("display","block");
					$('#userG').html(response.userG);window.setTimeout(function () {$('.mrqd').remove();$('.mrqd_un').show();_s = 1;},1200);
				} else {
					popup.prompt(response.msg);_s = 1;
				}   
			    });
			}
		}
		</script>
{include template('footer','common')}
</body>
</html>